from pyecharts import options as opts
from pyecharts.charts import Bar
from pyecharts.faker import Faker

c = (
    Bar()
        .add_xaxis(Faker.choose())
        .add_yaxis("商家A", Faker.values())
        .add_yaxis("商家B", Faker.values())
        .set_global_opts(
        title_opts=opts.TitleOpts(title="01.柱状图-Brush示例", subtitle="我是副标题"),
        brush_opts=opts.BrushOpts(),
    )
        .render("27柱状图选择器.html")
)
